package org.de.maeyer.statistic;

/**
 * @author Peter De Maeyer
 */
public interface Category {
	
	/**
	 * @return the # samples in this category.
	 */
	long getCount();
	
	/**
	 * @return the (normalized) density of this category. The density is the count relative to the width. Remember that the mode category is the category that
	 *         has the highest density. The density can be used to compute e.g. the heigts of the bars in a bar chart of the different categories, especially if
	 *         the categories have different widths.
	 */
	double getDensity();
	
	double getWidth();
	
	Object getValue();
	
	boolean contains(Object value);
}
